enum CardSuit {
	Clubs = 6,
	Diamonds,
	Hearts,
	Spades
}

// 简单的使用枚举类型
let Card = CardSuit.Clubs;
console.log(Card);
Card = 5;
// CardSuit.Clubs = 5
console.log(CardSuit.Clubs);

console.log(CardSuit);

export { Card };
enum AnimalFlags {
	None = 0,
	HasClaws = 1 << 0,
	CanFly = 1 << 1,
	EatsFish = 1 << 2,
	Endangered = 1 << 3,

	EndangeredFlyingClawedFishEating = HasClaws | CanFly | EatsFish | Endangered //合并标准
}
console.log(AnimalFlags);
const enum Tristate {
	False,
	True,
	Unknown
}

const lie = Tristate.False;
console.log(lie);

enum P {
	'North',
	'East',
	'South',
	'West'
}
console.log(P);
